package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.SUBMIT_LOG;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;

import java.util.ArrayList;


public class SubmitLogApi implements IRequestApi, IRequestType {

    private ReqSubmitLogBean overripe;

    public SubmitLogApi(ReqSubmitLogBean overripe) {
        this.overripe = overripe;
    }

    @NonNull
    @Override
    public String getApi() {
        return SUBMIT_LOG;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }

    public static final class ReqSubmitLogBean {
        private long sigmate;
        private ArrayList<HesitancyBean> hesitancy;

        public ReqSubmitLogBean(long sigmate, ArrayList<HesitancyBean> hesitancy) {
            this.sigmate = sigmate;
            this.hesitancy = hesitancy;
        }
    }

    public static final class HesitancyBean {
        private long sigmate;
        private PsalmodyBean psalmody;

        public HesitancyBean(long sigmate, PsalmodyBean psalmody) {
            this.sigmate = sigmate;
            this.psalmody = psalmody;
        }

    }

    public static final class PsalmodyBean {
        private String tabasco;
        private String lung;
        private String bumbailiff;
        private String jailhouse;

        public PsalmodyBean(String tabasco, String lung, String bumbailiff, String jailhouse) {
            this.tabasco = tabasco;
            this.lung = lung;
            this.bumbailiff = bumbailiff;
            this.jailhouse = jailhouse;
        }
    }
}


